package com.yeshine.opendata.dao;

import com.yeshine.opendata.core.IDao;
import com.yeshine.opendata.entity.SysModel;
import com.yeshine.opendata.entity.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by taohj on 2014/9/3.
 */
public interface ISysRoleDao extends IDao<SysRole> {

    int authorization(@Param("role")int role, @Param("models")int[] models);

    int deauthorize(@Param("role")int role);

    List<SysModel> selectPermission(@Param("role")int role);
}
